package com.test.random.server.port.poperties;

import com.test.random.server.port.constants.RandomServerPortConstant;
import org.springframework.boot.context.properties.ConfigurationProperties;


/**
 * @ClassName DefaultServerPortProperties
 * @Description TODO
 * @Author jhwang
 * @Date 2021/9/12 20:19
 * @Version 1.0.0
 */
@ConfigurationProperties(prefix = "server")
public class DefaultServerPortProperties {
    private Integer port = RandomServerPortConstant.DEFAULT_SERVER_PORT;

    public Integer getPort() {
        return port;
    }

    public DefaultServerPortProperties setPort(Integer port) {
        this.port = port;
        return this;
    }
}
